package com.csu.jpetstore_reconfiguration_back.service;

import com.csu.jpetstore_reconfiguration_back.common.CommonResponse;
import com.csu.jpetstore_reconfiguration_back.domain.User;
import com.baomidou.mybatisplus.extension.service.IService;
import jakarta.servlet.http.HttpServletRequest;

import java.util.List;

/**
* @author 朱嘉辉
* @description 针对表【t_user】的数据库操作Service
* @createDate 2024-04-13 20:22:38
*/
public interface UserService extends IService<User> {
    CommonResponse<String> login(String username, String password);
    CommonResponse<User> register(User user);
    CommonResponse<User> getCurrentUser(HttpServletRequest request);
    CommonResponse<List<User>> getAllUser();
}
